package com.lunchEveryDay.dao;

import com.lunchEveryDay.entity.LunchSchedule;
import com.lunchEveryDay.entity.User;
import com.lunchEveryDay.entity.UserLunch;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Admin on 2015/7/21.
 */
@Repository
public class LunchScheduleDao extends BaseDao<LunchSchedule,Long>{
//
//	public List<UserLunch> getUserLunchByUser(User user){
//		List<UserLunch> userLunchs = (List<UserLunch>)getCurrentSession().createQuery(
//				  "from LunchSchedule as ls where ls.user = ?")
//				  .setEntity(0, user)
//				  .list();
//		return userLunchs;
//	}
}
